package com.example.his.api.mis.controller.form.role;

import lombok.Data;

import javax.validation.constraints.*;
import java.util.ArrayList;

@Data
public class InsertRoleForm {
  
  @NotBlank(message = "roleName不能为空")
  @Pattern(regexp = "^[a-zA-Z0-9\\u4e00-\\u9fa5]{2,20}$", message = "roleName格式错误")
  private String roleName;
  
  @NotEmpty(message = "permissions不能为空")
  private ArrayList <Number> permissions;
  
  private ArrayList <Number> defaultPermissions;
  
  private String desc;
  
}
